/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.springblade.core.mp.base.BaseEntity;

import java.sql.Date;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.repair.dto.WatermarkContentDTO;
import org.springblade.modules.system.entity.Tenant;

/**
 * 维保相关水印照片表实体类
 *
 * @author ysq
 * @since 2023-10-24
 */
@Data
@TableName("blade_maintain_watermark_img")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MaintainWatermarkImg对象", description = "维保相关水印照片表")
public class MaintainWatermarkImg extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 项目id
	 */
	@ApiModelProperty(value = "项目id")
	private Long buildingId;
	/**
	 * 项目名称
	 */
	@ApiModelProperty(value = "项目名称")
	private String buildingName;
	/**
	 * 电梯id
	 */
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;
	/**
	 * 电梯地址
	 */
	@ApiModelProperty(value = "电梯地址")
	private String elevatorAddress;
	/**
	 * 计划任务id
	 */
	@ApiModelProperty(value = "计划任务id")
	private Long planId;
	/**
	 * 计划任务id
	 */
	@ApiModelProperty(value = "任务工作项id")
	private Long planWorkItemId;
	/**
	 * 部件id
	 */
	@ApiModelProperty(value = "部件id")
	private Long partsId;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private Long userId;
	/**
	 * 用户名称
	 */
	@ApiModelProperty(value = "用户名称")
	private String userName;
	/**
	 * 水印类型
	 */
	@ApiModelProperty(value = "水印类型")
	private Integer watermarkType;
	/**
	 * 部分业务标签
	 */
	@ApiModelProperty(value = "部分业务标签")
	private Integer itemType;
	/**
	 * 照片id
	 */
	@ApiModelProperty(value = "照片id")
	private String imgId;
	/**
	 * 照片时间
	 */
	@ApiModelProperty(value = "照片时间")
	private Date imgTime;
	/**
	 * 照片上传地址
	 */
	@ApiModelProperty(value = "照片上传地址")
	private String imgUploadAddress;
	/**
	 * 水印内容
	 */
	@ApiModelProperty(value = "水印内容")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private WatermarkContentDTO watermarkData;
	/**
	 * 照片url
	 */
	@ApiModelProperty(value = "照片url")
	private String imgUrl;


}
